﻿using System;
using DapperLambdaSQL.Model;
using DapperLambdaSQL.Model.Attributes;

namespace DapperLambdaSQLTests
{
    /*
     CREATE TABLE `order` (
      `Id` bigint(20) NOT NULL AUTO_INCREMENT,
      `Price` decimal(10,2) DEFAULT NULL,
      `UserId` bigint(20) DEFAULT NULL,
      `UserName` varchar(255) DEFAULT NULL,
      `Status` int(255) DEFAULT NULL,
      `IsDel` varchar(1) DEFAULT NULL,
      `CreateDate` datetime DEFAULT NULL,
      PRIMARY KEY (`Id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
     */
    [TableName("order")]
    public class order : DbModel
    {
        public int Id { get; set; }
        public decimal Price { get; set; }
        public long UserId { get; set; }
        public string UserName { get; set; }
        public int Status { get; set; }
        public bool IsDel { get; set; }
        public DateTime CreateDate { get; set; }
    }
}